package cn.shenshen.shop.web.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class LoginVo {

    //使用校验规则
    @Pattern(regexp = "1\\d{10}",message = "手机号格式输入不正确")
    @NotNull(message = "用户名不能为空")
    private String username;
    @NotNull(message = "密码不能为空")
    private String password;

}
